<template>
  <el-button
          :type="type"
          size="medium"
          :class="className" @click="$emit('doAction')">{{text}}</el-button>
</template>

<script>
  export default {
    name: 'operate-button',
    props: {
      type: {
        type: String
      },
      text: {
        type: String,
        required: true
      },
      className: {
        type: String
      }
    }
  }
</script>

<style>

</style>
